<cfsetting enablecfoutputonly="true" />
<!------------------------------------------------------------------------
 THIS FILE ONLY GETS RUN ON THE INITIALIZATION OF THE PROJECT
 - note runs AFTER ./project/config/_serverSpecifcVars.cfm
 ------------------------------------------------------------------------>
 
<cfparam name="application.stplugins.jcfarcryflvplayer" default="#structNew()#" type="struct" />
<cfparam name="application.stplugins.jcfarcryflvplayer.url" default="#structNew()#" type="struct" />

<!--- You can override these settings in your project's _serverSpecificVars.cfm --->
<cfif NOT structkeyExists(application.stplugins.jcfarcryflvplayer, "bLoadPluginCssFile")>
  <cfset application.stplugins.jcfarcryflvplayer.bLoadPluginCssFile = true />
</cfif>
<cfif NOT structkeyExists(application.stplugins.jcfarcryflvplayer, "bLoadJsFile")>
  <cfset application.stplugins.jcfarcryflvplayer.bLoadJsFile = true />
</cfif>
<cfif NOT structkeyExists(application.stplugins.jcfarcryflvplayer.url, "pluginroot")>
  <cfset application.stplugins.jcfarcryflvplayer.url.pluginroot = application.url.webroot & "/jcFarcryFlvPlayer" />
</cfif>
<cfif NOT structkeyExists(application.stplugins.jcfarcryflvplayer.url, "expressinstall")>
  <cfset application.stplugins.jcfarcryflvplayer.url.expressinstall = application.stplugins.jcfarcryflvplayer.url.pluginroot & "/includes/expressinstall.swf" />
</cfif>

<cfif NOT structkeyExists(application.stplugins.jcfarcryflvplayer.url, "missingTeaserImage")>
  <cfset application.stplugins.jcfarcryflvplayer.url.missingTeaserImage = application.stplugins.jcfarcryflvplayer.url.pluginroot & "/css/images/icon_missingvideo_rndcnr_100x70.jpg" />
  <!--- missingTeaserImage
    Options available with plugin are:
      * icon_missingvideo_100x70.jpg
      * icon_missingvideo_rndcnr_100x70.jpg
      * -or- feel free to use your own
   --->
</cfif>

<!--- intitialize objects --->
<cfset application.stplugins.jcfarcryflvplayer.oJcFarcryFlvFile = createObject("component", "farcry.plugins.jcFarcryFlvPlayer.packages.types.jcFarcryFlvFile").init() />
<cfset application.stplugins.jcfarcryflvplayer.oCustomFunctions = createObject("component", "farcry.plugins.jcFarcryFlvPlayer.packages.custom.customFunctions").init() />

<cfsetting enablecfoutputonly="false" />